<?

echo "MODIFY MODE :" 	.$_SESSION["modify_mode"]. "<br/>\n";

if($_SESSION["modify_mode"] == "Y"){

	$status_of_write="Modify";
}else{

	$status_of_write="Confirm";
}

require("entry_header_html.php");		
//query and get the table header

$CHtml = new CGHtml;

echo  "<table label='entryDetail' border='1' class='dedeq'>\n".
      "<th> NO          </th>\n".
      "<th> MODEL       </th>\n".
      "<th> QTY         </th>\n".
      "<th> SER_NUMBER  </th>\n".
      "<th> REASON      </th>\n";
      
for($iRow = 0; $iRow < $_SESSION["init_num"]; $iRow++){
        
  /**
  * Details table
  *
  */
  echo  "<tr>\n".
          
          "<td> ".($iRow + 1)." </td>\n".
          
          "<td> ".$CHtml->formInput("modelEnt[".$iRow."]",
                                    $_POST["modelEnt"][$iRow],
                                    _MODE_READONLY)." </td>\n".
          
          "<td> ".$CHtml->formInput("qtyEnt[".$iRow."]",
                                    $_POST["qtyEnt"][$iRow],
                                    _MODE_READONLY)." </td>\n".
          
          "<td> ".$CHtml->formInput("serNumEnt[".$iRow."]",
                                    $_POST["serNumEnt"][$iRow],
                                    _MODE_READONLY)."</td>\n".
          
          "<td> ".$CHtml->formInput("reasonEnt[".$iRow."]",
                                    $_POST["reasonEnt"][$iRow],
                                    _MODE_READONLY)." </td>\n".
        "</tr>\n";
        
}
              
echo  "</table>\n".
      "<br/>\n";

echo 	$CHtml->formInputButton("Save",
                              "confirm",
                              "Confirm",
                              $stlButton).
			
			$CHtml->formInputButton("Back",
                              "back",
                              "Back",
                              $stlButton).
  		
  		"</form>	\n";

?>